# coding = utf-8
#装饰器



def outfunc(func):

    def infunc():
        print("日志记录：")
        func()

    return infunc

def fun1():
    print("使用功能1")

def fun2():
    print("使用新功能2 ")
print(id(fun1))
fun1=outfunc(fun1)
print(id(fun1))
fun1=outfunc(fun1)
fun1()

fun2=outfunc(fun2)
fun2()


